package com.mybatis.lo;

import com.mybatis.lo.dao.UserDao;
import com.mybatis.lo.dao.UserDaoImplWithJdbc2;
import com.mybatis.lo.po.User;
import org.junit.Test;

import java.util.List;


public class UserDaoTestWithJdbc2 {


    @Test
    public void testQueryUserById() {
        UserDao userDao = new UserDaoImplWithJdbc2();
        User user = userDao.queryUserById(1);
        System.out.println(user);

    }

    @Test
    public void testQueryUsersByUsername() {
        UserDao userDao = new UserDaoImplWithJdbc2();

        List<User> users = userDao.queryUserByName("王五");
        System.out.println(users);

    }

}
